﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    enum Food 
    {
        鸡蛋,
        白菜,
        茄子
    }
    class CookRobot : Robot
    {
        private Food food;
        public Food Food 
        {
            get { return this.food; }
            set { this.food = value; }
        }
        public override void working()
        {
            Console.WriteLine("我的名字是{0}，我属于{1}，请问你需要点{2}吗？",base.Name , base.Type , this.food);
        }
        public CookRobot(string name , RobotType type , Food food ):base( name , type) 
        {
            this.food = food;
        }
    }
}
